# frozen_string_literal: true

require 'leanweb'
require_relative 'routes'

if ENV['RACK_ENV'] == 'development'
  use(Rack::Reloader, 0)
  use(Rack::Static, urls: ['/2022', '/assets'], root: 'public', cascade: true)
end

run LeanWeb::App.new(ROUTES)
